//
//  WBEmoticonModel.swift
//  weibo
//
//  Created by  郭航 on 16/7/5.
//  Copyright © 2016年 郭航. All rights reserved.
//

import UIKit

class WBEmoticonModel: NSObject {
    
    var type: String? {
        didSet {
            if type != "0" {
                isEmoji = true
            }
        }
    }
    
    var chs: String?
    var png: String?
    var code: String?
    
    var isEmoji: Bool = false
    
    var path: String?
    
    var pngName: String {
        let path = self.path ?? ""
        let png = self.png ?? ""

        return path + png
    }

    init(dic: [String : AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dic)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
}
